﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SysSU.JSONRPC
{
    public class JSONRPC2InvalidMessageException : Exception
    {
        private string messageString = null;

        public string UnparsableString
        {
            get { return messageString; }
        }

        public JSONRPC2InvalidMessageException(string message)
            : base(message)
        {
        }

        public JSONRPC2InvalidMessageException(string message, string messageString)
            : this(message)
        {
            this.messageString = messageString;
        }        
    }
}
